package com.heima.user.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author WSJ
 * @Date 2022-03-11-15:29
 * @Version 1.0 （版本号）
 */
@Configuration
@MapperScan("com.heima.user.mapper")
public class MybatisConfig {
    /**
     * Mybatis分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
